home *** CD-ROM | disk | FTP | other *** search
/ Aminet 35 / Aminet 35 (2000)(Schatztruhe)[!][Feb 2000].iso / Aminet / dev / lang / jikes-diffs.lha / jikes-diffs
Encoding:
Text File  |  1999-09-30  |  58.1 KB  |  1,574 lines

  1. diff -u -r -N jikes-1.06.orig/src/Makefile.amiga jikes-1.06/src/Makefile.amiga
  2. --- jikes-1.06.orig/src/Makefile.amiga    Thu Jan  1 02:00:00 1970
  3. +++ jikes-1.06/src/Makefile.amiga    Wed Sep 29 21:38:18 1999
  4. @@ -0,0 +1,418 @@
  5. +# Generated automatically from Makefile.in by configure.
  6. +# $Id: Makefile.in,v 1.8 1999/09/14 18:32:51 shields Exp $
  7. +
  8. +CC=c++
  9. +CCREQUIREDFLAGS=-funsigned-char -c -ansi -DTYPE_bool -DBIGENDIAN -Dstat=mystat -Dfopen=myfopen -Dopendir=myopendir -Dmkdir=mymkdir -include libc5-fix.h -I.
  10. +CCDEBUGFLAGS=-DTEST -g
  11. +CCOPTFLAGS=-O0 -fomit-frame-pointer -m68020-60 -m68881
  12. +CCFLAGS=$(CCREQUIREDFLAGS) $(CCOPTFLAGS)
  13. +CFLAGS=$(CCFLAGS)
  14. +ERASE=rm -f
  15. +EXECUTABLE=jikes
  16. +LD=c++
  17. +LDFLAGS=-s -L. -o $(EXECUTABLE) -m68020-60 -m68881
  18. +# Use GG:lib/libnix/swapstack.o when compiling for a 68000
  19. +# Use GG:lib/libm020/libnix/swapstack.o when compiling for a 68020+
  20. +SYSOBJECTS=GG:lib/libm020/libnix/swapstack.o -noixemul
  21. +
  22. +
  23. +
  24. +BUILD_DIR=.
  25. +
  26. +srcdir        = .
  27. +prefix        = /gg
  28. +exec_prefix    = ${prefix}
  29. +
  30. +
  31. +#
  32. +# You should not need to edit below here
  33. +#
  34. +
  35. +
  36. +all:  $(EXECUTABLE)
  37. +
  38. +clean:
  39. +    $(ERASE) $(EXECUTABLE)
  40. +    $(ERASE) $(OBJECTS)
  41. +
  42. +distclean: clean
  43. +    $(ERASE) config.cache config.log config.status
  44. +    $(ERASE) Makefile
  45. +
  46. +install: all
  47. +    mkdir -p $(prefix)/bin
  48. +    strip $(EXECUTABLE)
  49. +    cp $(EXECUTABLE) $(prefix)/bin
  50. +    mkdir -p $(prefix)/man/man1
  51. +    cp ../jikes.1 $(prefix)/man/man1
  52. +
  53. +OBJECTS=jikes.o scanner.o code.o zip.o unzip.o \
  54. +        ast.o diagnose.o parser.o lpginput.o javaact.o \
  55. +        error.o set.o symbol.o lookup.o long.o depend.o \
  56. +        stream.o op.o control.o modifier.o system.o \
  57. +        bytecode.o body.o decl.o definite.o dump.o expr.o \
  58. +        getclass.o init.o double.o config.o option.o \
  59. +        incrmnt.o case.o tab.o segment.o amiga.o
  60. +
  61. +$(EXECUTABLE):    $(OBJECTS)
  62. +    $(LD) $(LDFLAGS)  $(OBJECTS) $(SYSOBJECTS)
  63. +
  64. +
  65. +javasym.h: $(srcdir)/java.g
  66. +    jikespg $(srcdir)/java.g
  67. +    $(ERASE) java.l
  68. +
  69. +javadef.h: $(srcdir)/java.g
  70. +    jikespg $(srcdir)/java.g
  71. +    $(ERASE) java.l
  72. +
  73. +javadcl.h: $(srcdir)/java.g
  74. +    jikespg $(srcdir)/java.g
  75. +    $(ERASE) java.l
  76. +
  77. +javaprs.h: $(srcdir)/java.g
  78. +    jikespg $(srcdir)/java.g
  79. +    $(ERASE) java.l
  80. +
  81. +
  82. +ast.o:  $(srcdir)/ast.cpp $(srcdir)/config.h \
  83. +          $(srcdir)/code.h $(srcdir)/case.h $(srcdir)/ast.h \
  84. +          $(srcdir)/stream.h $(srcdir)/javadef.h $(srcdir)/javasym.h \
  85. +          $(srcdir)/tuple.h $(srcdir)/tab.h $(srcdir)/lookup.h $(srcdir)/long.h \
  86. +          $(srcdir)/double.h $(srcdir)/symbol.h $(srcdir)/option.h \
  87. +          $(srcdir)/depend.h $(srcdir)/access.h 
  88. +    $(CC) $(CCFLAGS) $(srcdir)/ast.cpp 
  89. +
  90. +body.o: $(srcdir)/body.cpp $(srcdir)/config.h $(srcdir)/semantic.h \
  91. +          $(srcdir)/ast.h $(srcdir)/stream.h $(srcdir)/javadef.h \
  92. +          $(srcdir)/javasym.h $(srcdir)/tuple.h \
  93. +          $(srcdir)/tab.h $(srcdir)/lookup.h $(srcdir)/long.h \
  94. +          $(srcdir)/double.h $(srcdir)/code.h \
  95. +      $(srcdir)/case.h $(srcdir)/symbol.h $(srcdir)/option.h \
  96. +          $(srcdir)/depend.h $(srcdir)/access.h $(srcdir)/diagnose.h \
  97. +          $(srcdir)/parser.h $(srcdir)/lpginput.h $(srcdir)/javaprs.h \
  98. +          $(srcdir)/javaact.h $(srcdir)/error.h $(srcdir)/control.h $(srcdir)/set.h 
  99. +    $(CC) $(CCFLAGS) $(srcdir)/body.cpp 
  100. +
  101. +bytecode.o: $(srcdir)/bytecode.cpp $(srcdir)/config.h $(srcdir)/ast.h \
  102. +              $(srcdir)/stream.h $(srcdir)/javadef.h $(srcdir)/javasym.h \
  103. +              $(srcdir)/tuple.h $(srcdir)/tab.h \
  104. +              $(srcdir)/lookup.h $(srcdir)/long.h $(srcdir)/double.h \
  105. +              $(srcdir)/code.h $(srcdir)/case.h \
  106. +              $(srcdir)/symbol.h $(srcdir)/option.h $(srcdir)/depend.h \
  107. +              $(srcdir)/access.h $(srcdir)/bytecode.h $(srcdir)/class.h \
  108. +              $(srcdir)/semantic.h $(srcdir)/diagnose.h $(srcdir)/parser.h \
  109. +              $(srcdir)/lpginput.h $(srcdir)/javaprs.h $(srcdir)/javaact.h \
  110. +              $(srcdir)/error.h $(srcdir)/control.h $(srcdir)/set.h \
  111. +              $(srcdir)/op.h $(srcdir)/segment.h  \
  112. +              $(srcdir)/op.h $(srcdir)/table.h 
  113. +    $(CC) $(CCFLAGS) $(srcdir)/bytecode.cpp 
  114. +
  115. +config.o:  $(srcdir)/config.cpp $(srcdir)/config.h 
  116. +    $(CC) $(CCFLAGS) $(srcdir)/config.cpp 
  117. +
  118. +code.o:  $(srcdir)/code.cpp $(srcdir)/code.h $(srcdir)/config.h 
  119. +    $(CC) $(CCFLAGS) $(srcdir)/code.cpp 
  120. +
  121. +control.o:  $(srcdir)/control.cpp $(srcdir)/config.h $(srcdir)/control.h \
  122. +              $(srcdir)/option.h $(srcdir)/code.h \
  123. +              $(srcdir)/tuple.h $(srcdir)/symbol.h $(srcdir)/stream.h \
  124. +              $(srcdir)/javadef.h $(srcdir)/javasym.h $(srcdir)/tab.h \
  125. +              $(srcdir)/lookup.h $(srcdir)/long.h $(srcdir)/double.h \
  126. +              $(srcdir)/case.h $(srcdir)/depend.h \
  127. +              $(srcdir)/access.h $(srcdir)/set.h $(srcdir)/scanner.h \
  128. +          $(srcdir)/parser.h $(srcdir)/lpginput.h $(srcdir)/javaprs.h \
  129. +              $(srcdir)/javaact.h $(srcdir)/semantic.h $(srcdir)/ast.h \
  130. +          $(srcdir)/diagnose.h $(srcdir)/error.h $(srcdir)/bytecode.h \
  131. +              $(srcdir)/class.h $(srcdir)/segment.h \
  132. +              $(srcdir)/class.h $(srcdir)/op.h 
  133. +    $(CC) $(CCFLAGS) $(srcdir)/control.cpp 
  134. +
  135. +case.o:  $(srcdir)/case.cpp $(srcdir)/config.h $(srcdir)/case.h 
  136. +    $(CC) $(CCFLAGS) $(srcdir)/case.cpp 
  137. +
  138. +diagnose.o:  $(srcdir)/diagnose.cpp $(srcdir)/config.h $(srcdir)/diagnose.h \
  139. +               $(srcdir)/parser.h $(srcdir)/lpginput.h $(srcdir)/stream.h \
  140. +           $(srcdir)/javadef.h $(srcdir)/javasym.h $(srcdir)/tuple.h \
  141. +               $(srcdir)/tab.h $(srcdir)/lookup.h \
  142. +               $(srcdir)/long.h $(srcdir)/double.h \
  143. +               $(srcdir)/code.h $(srcdir)/case.h $(srcdir)/javaprs.h \
  144. +               $(srcdir)/javaact.h $(srcdir)/control.h $(srcdir)/option.h \
  145. +           $(srcdir)/symbol.h $(srcdir)/depend.h $(srcdir)/access.h \
  146. +               $(srcdir)/set.h $(srcdir)/semantic.h $(srcdir)/ast.h \
  147. +               $(srcdir)/error.h $(srcdir)/spell.h
  148. +    $(CC) $(CCFLAGS) $(srcdir)/diagnose.cpp 
  149. +
  150. +decl.o:  $(srcdir)/decl.cpp $(srcdir)/config.h $(srcdir)/semantic.h \
  151. +           $(srcdir)/ast.h $(srcdir)/stream.h $(srcdir)/javadef.h \
  152. +           $(srcdir)/javasym.h $(srcdir)/tuple.h \
  153. +           $(srcdir)/tab.h $(srcdir)/lookup.h $(srcdir)/long.h \
  154. +           $(srcdir)/double.h $(srcdir)/code.h \
  155. +       $(srcdir)/case.h $(srcdir)/symbol.h $(srcdir)/option.h \
  156. +           $(srcdir)/depend.h $(srcdir)/access.h $(srcdir)/diagnose.h \
  157. +           $(srcdir)/parser.h $(srcdir)/lpginput.h $(srcdir)/javaprs.h \
  158. +           $(srcdir)/javaact.h $(srcdir)/error.h $(srcdir)/control.h \
  159. +           $(srcdir)/set.h $(srcdir)/table.h 
  160. +    $(CC) $(CCFLAGS) $(srcdir)/decl.cpp 
  161. +
  162. +definite.o:  $(srcdir)/definite.cpp $(srcdir)/config.h $(srcdir)/semantic.h \
  163. +               $(srcdir)/ast.h $(srcdir)/stream.h $(srcdir)/javadef.h \
  164. +           $(srcdir)/javasym.h $(srcdir)/tuple.h \
  165. +               $(srcdir)/tab.h $(srcdir)/lookup.h $(srcdir)/long.h \
  166. +               $(srcdir)/double.h $(srcdir)/code.h \
  167. +               $(srcdir)/case.h $(srcdir)/symbol.h $(srcdir)/option.h \
  168. +               $(srcdir)/depend.h $(srcdir)/access.h $(srcdir)/diagnose.h \
  169. +           $(srcdir)/parser.h $(srcdir)/lpginput.h $(srcdir)/javaprs.h \
  170. +               $(srcdir)/javaact.h $(srcdir)/error.h $(srcdir)/control.h \
  171. +               $(srcdir)/set.h 
  172. +    $(CC) $(CCFLAGS) $(srcdir)/definite.cpp 
  173. +
  174. +depend.o:  $(srcdir)/depend.cpp $(srcdir)/config.h $(srcdir)/ast.h \
  175. +             $(srcdir)/stream.h $(srcdir)/javadef.h $(srcdir)/javasym.h \
  176. +             $(srcdir)/tuple.h $(srcdir)/tab.h \
  177. +             $(srcdir)/lookup.h $(srcdir)/long.h $(srcdir)/double.h \
  178. +             $(srcdir)/code.h $(srcdir)/case.h \
  179. +         $(srcdir)/symbol.h $(srcdir)/option.h $(srcdir)/depend.h \
  180. +             $(srcdir)/access.h $(srcdir)/semantic.h $(srcdir)/diagnose.h \
  181. +         $(srcdir)/parser.h $(srcdir)/lpginput.h $(srcdir)/javaprs.h \
  182. +             $(srcdir)/javaact.h $(srcdir)/error.h $(srcdir)/control.h \
  183. +             $(srcdir)/set.h 
  184. +    $(CC) $(CCFLAGS) $(srcdir)/depend.cpp 
  185. +
  186. +double.o:  $(srcdir)/double.cpp $(srcdir)/config.h $(srcdir)/double.h \
  187. +             $(srcdir)/long.h 
  188. +    $(CC) $(CCFLAGS) $(srcdir)/double.cpp 
  189. +
  190. +dump.o:  $(srcdir)/dump.cpp $(srcdir)/config.h $(srcdir)/javasym.h \
  191. +           $(srcdir)/control.h $(srcdir)/option.h \
  192. +           $(srcdir)/code.h $(srcdir)/tuple.h $(srcdir)/symbol.h \
  193. +           $(srcdir)/stream.h $(srcdir)/javadef.h $(srcdir)/tab.h \
  194. +           $(srcdir)/lookup.h $(srcdir)/long.h $(srcdir)/double.h \
  195. +           $(srcdir)/case.h $(srcdir)/depend.h \
  196. +           $(srcdir)/access.h $(srcdir)/set.h 
  197. +    $(CC) $(CCFLAGS) $(srcdir)/dump.cpp 
  198. +
  199. +error.o:  $(srcdir)/error.cpp $(srcdir)/config.h \
  200. +            $(srcdir)/code.h $(srcdir)/case.h \
  201. +            $(srcdir)/error.h $(srcdir)/stream.h $(srcdir)/javadef.h \
  202. +            $(srcdir)/javasym.h $(srcdir)/tuple.h $(srcdir)/tab.h \
  203. +            $(srcdir)/lookup.h $(srcdir)/long.h $(srcdir)/double.h \
  204. +            $(srcdir)/control.h $(srcdir)/option.h $(srcdir)/symbol.h \
  205. +            $(srcdir)/depend.h $(srcdir)/access.h $(srcdir)/set.h \
  206. +        $(srcdir)/semantic.h $(srcdir)/ast.h $(srcdir)/diagnose.h \
  207. +            $(srcdir)/parser.h $(srcdir)/lpginput.h $(srcdir)/javaprs.h \
  208. +        $(srcdir)/javaact.h 
  209. +    $(CC) $(CCFLAGS) $(srcdir)/error.cpp 
  210. +
  211. +expr.o:  $(srcdir)/expr.cpp $(srcdir)/double.h $(srcdir)/config.h \
  212. +           $(srcdir)/parser.h $(srcdir)/lpginput.h \
  213. +           $(srcdir)/stream.h $(srcdir)/javadef.h $(srcdir)/javasym.h \
  214. +           $(srcdir)/tuple.h $(srcdir)/tab.h $(srcdir)/lookup.h \
  215. +           $(srcdir)/long.h $(srcdir)/code.h \
  216. +           $(srcdir)/case.h $(srcdir)/javaprs.h $(srcdir)/javaact.h \
  217. +           $(srcdir)/semantic.h $(srcdir)/ast.h $(srcdir)/symbol.h \
  218. +       $(srcdir)/option.h $(srcdir)/depend.h $(srcdir)/access.h \
  219. +           $(srcdir)/diagnose.h $(srcdir)/error.h $(srcdir)/control.h \
  220. +           $(srcdir)/set.h $(srcdir)/table.h $(srcdir)/spell.h
  221. +    $(CC) $(CCFLAGS) $(srcdir)/expr.cpp 
  222. +
  223. +getclass.o:  $(srcdir)/getclass.cpp $(srcdir)/config.h $(srcdir)/control.h \
  224. +               $(srcdir)/option.h $(srcdir)/code.h \
  225. +               $(srcdir)/tuple.h $(srcdir)/symbol.h $(srcdir)/stream.h \
  226. +               $(srcdir)/javadef.h $(srcdir)/javasym.h $(srcdir)/tab.h \
  227. +               $(srcdir)/lookup.h $(srcdir)/long.h $(srcdir)/double.h \
  228. +               $(srcdir)/case.h $(srcdir)/depend.h \
  229. +               $(srcdir)/access.h $(srcdir)/set.h $(srcdir)/semantic.h \
  230. +           $(srcdir)/ast.h $(srcdir)/diagnose.h $(srcdir)/parser.h \
  231. +               $(srcdir)/lpginput.h $(srcdir)/javaprs.h $(srcdir)/javaact.h \
  232. +               $(srcdir)/error.h $(srcdir)/getclass.h $(srcdir)/zip.h \
  233. +               $(srcdir)/unzip.h 
  234. +    $(CC) $(CCFLAGS) $(srcdir)/getclass.cpp 
  235. +
  236. +incrmnt.o:  $(srcdir)/incrmnt.cpp $(srcdir)/config.h $(srcdir)/control.h \
  237. +              $(srcdir)/option.h $(srcdir)/code.h \
  238. +              $(srcdir)/tuple.h $(srcdir)/symbol.h $(srcdir)/stream.h \
  239. +              $(srcdir)/javadef.h $(srcdir)/javasym.h $(srcdir)/tab.h \
  240. +              $(srcdir)/lookup.h $(srcdir)/long.h $(srcdir)/double.h \
  241. +              $(srcdir)/case.h $(srcdir)/depend.h \
  242. +              $(srcdir)/access.h $(srcdir)/set.h $(srcdir)/scanner.h \
  243. +          $(srcdir)/parser.h $(srcdir)/lpginput.h $(srcdir)/javaprs.h \
  244. +              $(srcdir)/javaact.h $(srcdir)/semantic.h $(srcdir)/ast.h \
  245. +          $(srcdir)/diagnose.h $(srcdir)/error.h 
  246. +    $(CC) $(CCFLAGS) $(srcdir)/incrmnt.cpp 
  247. +
  248. +init.o:  $(srcdir)/init.cpp $(srcdir)/config.h $(srcdir)/semantic.h \
  249. +           $(srcdir)/ast.h $(srcdir)/stream.h $(srcdir)/javadef.h \
  250. +           $(srcdir)/javasym.h $(srcdir)/tuple.h \
  251. +           $(srcdir)/tab.h $(srcdir)/lookup.h $(srcdir)/long.h \
  252. +           $(srcdir)/double.h $(srcdir)/code.h \
  253. +       $(srcdir)/case.h $(srcdir)/symbol.h $(srcdir)/option.h \
  254. +           $(srcdir)/depend.h $(srcdir)/access.h $(srcdir)/diagnose.h \
  255. +           $(srcdir)/parser.h $(srcdir)/lpginput.h $(srcdir)/javaprs.h \
  256. +           $(srcdir)/javaact.h $(srcdir)/error.h $(srcdir)/control.h $(srcdir)/set.h 
  257. +    $(CC) $(CCFLAGS) $(srcdir)/init.cpp
  258. +
  259. +javaact.o: $(srcdir)/javaact.cpp $(srcdir)/config.h $(srcdir)/parser.h \
  260. +             $(srcdir)/lpginput.h $(srcdir)/stream.h $(srcdir)/javadef.h \
  261. +         $(srcdir)/javasym.h $(srcdir)/tuple.h \
  262. +             $(srcdir)/tab.h $(srcdir)/lookup.h $(srcdir)/long.h \
  263. +             $(srcdir)/double.h $(srcdir)/code.h \
  264. +             $(srcdir)/case.h $(srcdir)/javaprs.h $(srcdir)/javaact.h \
  265. +             $(srcdir)/ast.h $(srcdir)/symbol.h $(srcdir)/option.h \
  266. +         $(srcdir)/depend.h $(srcdir)/access.h 
  267. +    $(CC) $(CCFLAGS) $(srcdir)/javaact.cpp
  268. +
  269. +jikes.o:  $(srcdir)/jikes.cpp $(srcdir)/config.h $(srcdir)/control.h \
  270. +            $(srcdir)/option.h $(srcdir)/code.h \
  271. +            $(srcdir)/tuple.h $(srcdir)/symbol.h $(srcdir)/stream.h \
  272. +            $(srcdir)/javadef.h $(srcdir)/javasym.h $(srcdir)/tab.h \
  273. +            $(srcdir)/lookup.h $(srcdir)/long.h $(srcdir)/double.h \
  274. +            $(srcdir)/case.h $(srcdir)/depend.h \
  275. +            $(srcdir)/access.h $(srcdir)/set.h 
  276. +    $(CC) $(CCFLAGS) $(srcdir)/jikes.cpp
  277. +
  278. +long.o:  $(srcdir)/long.cpp $(srcdir)/config.h $(srcdir)/long.h \
  279. +           $(srcdir)/double.h 
  280. +    $(CC) $(CCFLAGS) $(srcdir)/long.cpp 
  281. +
  282. +lookup.o:  $(srcdir)/lookup.cpp $(srcdir)/config.h $(srcdir)/lookup.h \
  283. +             $(srcdir)/tuple.h $(srcdir)/long.h \
  284. +             $(srcdir)/double.h $(srcdir)/symbol.h $(srcdir)/code.h \
  285. +             $(srcdir)/stream.h $(srcdir)/javadef.h $(srcdir)/javasym.h \
  286. +             $(srcdir)/tab.h $(srcdir)/case.h \
  287. +             $(srcdir)/option.h $(srcdir)/depend.h $(srcdir)/access.h \
  288. +             $(srcdir)/ast.h 
  289. +    $(CC) $(CCFLAGS) $(srcdir)/lookup.cpp
  290. +
  291. +lpginput.o:  $(srcdir)/lpginput.cpp $(srcdir)/config.h $(srcdir)/lpginput.h \
  292. +               $(srcdir)/stream.h $(srcdir)/javadef.h $(srcdir)/javasym.h \
  293. +           $(srcdir)/tuple.h $(srcdir)/tab.h \
  294. +               $(srcdir)/lookup.h $(srcdir)/long.h $(srcdir)/double.h \
  295. +               $(srcdir)/code.h $(srcdir)/case.h \
  296. +               $(srcdir)/javaprs.h $(srcdir)/javadcl.h 
  297. +    $(CC) $(CCFLAGS) $(srcdir)/lpginput.cpp 
  298. +
  299. +modifier.o:  $(srcdir)/modifier.cpp $(srcdir)/config.h $(srcdir)/semantic.h \
  300. +               $(srcdir)/ast.h $(srcdir)/stream.h $(srcdir)/javadef.h \
  301. +           $(srcdir)/javasym.h $(srcdir)/tuple.h \
  302. +               $(srcdir)/tab.h $(srcdir)/lookup.h $(srcdir)/long.h \
  303. +               $(srcdir)/double.h $(srcdir)/code.h \
  304. +               $(srcdir)/case.h $(srcdir)/symbol.h $(srcdir)/option.h \
  305. +               $(srcdir)/depend.h $(srcdir)/access.h $(srcdir)/diagnose.h \
  306. +           $(srcdir)/parser.h $(srcdir)/lpginput.h $(srcdir)/javaprs.h \
  307. +               $(srcdir)/javaact.h $(srcdir)/error.h $(srcdir)/control.h \
  308. +               $(srcdir)/set.h 
  309. +    $(CC) $(CCFLAGS) $(srcdir)/modifier.cpp 
  310. +
  311. +op.o:  $(srcdir)/op.cpp $(srcdir)/config.h $(srcdir)/op.h $(srcdir)/tuple.h \
  312. +         $(srcdir)/class.h $(srcdir)/semantic.h $(srcdir)/ast.h \
  313. +     $(srcdir)/stream.h $(srcdir)/javadef.h $(srcdir)/javasym.h \
  314. +         $(srcdir)/tab.h $(srcdir)/lookup.h $(srcdir)/long.h $(srcdir)/double.h \
  315. +     $(srcdir)/code.h $(srcdir)/case.h $(srcdir)/symbol.h \
  316. +         $(srcdir)/option.h $(srcdir)/depend.h $(srcdir)/access.h \
  317. +         $(srcdir)/diagnose.h $(srcdir)/parser.h $(srcdir)/lpginput.h \
  318. +         $(srcdir)/javaprs.h $(srcdir)/javaact.h $(srcdir)/error.h \
  319. +     $(srcdir)/control.h $(srcdir)/set.h 
  320. +    $(CC) $(CCFLAGS) $(srcdir)/op.cpp 
  321. +
  322. +option.o:  $(srcdir)/option.cpp $(srcdir)/option.h $(srcdir)/config.h \
  323. +             $(srcdir)/code.h $(srcdir)/tuple.h \
  324. +             $(srcdir)/javasym.h $(srcdir)/error.h $(srcdir)/stream.h \
  325. +             $(srcdir)/javadef.h $(srcdir)/tab.h $(srcdir)/lookup.h \
  326. +             $(srcdir)/long.h $(srcdir)/double.h \
  327. +             $(srcdir)/case.h 
  328. +    $(CC) $(CCFLAGS) $(srcdir)/option.cpp 
  329. +
  330. +parser.o:  $(srcdir)/parser.cpp $(srcdir)/config.h $(srcdir)/parser.h \
  331. +             $(srcdir)/lpginput.h $(srcdir)/stream.h $(srcdir)/javadef.h \
  332. +         $(srcdir)/javasym.h $(srcdir)/tuple.h \
  333. +             $(srcdir)/tab.h $(srcdir)/lookup.h $(srcdir)/long.h \
  334. +             $(srcdir)/double.h $(srcdir)/code.h \
  335. +             $(srcdir)/case.h $(srcdir)/javaprs.h $(srcdir)/javaact.h \
  336. +             $(srcdir)/ast.h $(srcdir)/symbol.h $(srcdir)/option.h \
  337. +         $(srcdir)/depend.h $(srcdir)/access.h 
  338. +    $(CC) $(CCFLAGS) $(srcdir)/parser.cpp
  339. +
  340. +scanner.o: $(srcdir)/scanner.cpp $(srcdir)/config.h $(srcdir)/scanner.h \
  341. +             $(srcdir)/code.h $(srcdir)/javadef.h \
  342. +             $(srcdir)/javasym.h $(srcdir)/stream.h $(srcdir)/tuple.h \
  343. +             $(srcdir)/tab.h $(srcdir)/lookup.h $(srcdir)/long.h \
  344. +             $(srcdir)/double.h $(srcdir)/case.h \
  345. +             $(srcdir)/control.h $(srcdir)/option.h $(srcdir)/symbol.h \
  346. +             $(srcdir)/depend.h $(srcdir)/access.h $(srcdir)/set.h $(srcdir)/error.h 
  347. +    $(CC) $(CCFLAGS) $(srcdir)/scanner.cpp 
  348. +
  349. +set.o:  $(srcdir)/set.cpp $(srcdir)/set.h $(srcdir)/config.h \
  350. +          $(srcdir)/symbol.h $(srcdir)/code.h \
  351. +          $(srcdir)/stream.h $(srcdir)/javadef.h $(srcdir)/javasym.h \
  352. +          $(srcdir)/tuple.h $(srcdir)/tab.h $(srcdir)/lookup.h \
  353. +          $(srcdir)/long.h $(srcdir)/double.h \
  354. +          $(srcdir)/case.h $(srcdir)/option.h $(srcdir)/depend.h \
  355. +          $(srcdir)/access.h 
  356. +    $(CC) $(CCFLAGS) $(srcdir)/set.cpp 
  357. +
  358. +stream.o:  $(srcdir)/stream.cpp $(srcdir)/config.h $(srcdir)/stream.h \
  359. +             $(srcdir)/javadef.h $(srcdir)/javasym.h $(srcdir)/tuple.h \
  360. +             $(srcdir)/tab.h $(srcdir)/lookup.h \
  361. +             $(srcdir)/long.h $(srcdir)/double.h \
  362. +             $(srcdir)/code.h $(srcdir)/case.h $(srcdir)/zip.h \
  363. +         $(srcdir)/unzip.h $(srcdir)/symbol.h $(srcdir)/option.h \
  364. +             $(srcdir)/depend.h $(srcdir)/access.h $(srcdir)/control.h \
  365. +             $(srcdir)/set.h $(srcdir)/semantic.h $(srcdir)/ast.h \
  366. +             $(srcdir)/diagnose.h $(srcdir)/parser.h $(srcdir)/lpginput.h \
  367. +             $(srcdir)/javaprs.h $(srcdir)/javaact.h $(srcdir)/error.h 
  368. +    $(CC) $(CCFLAGS) $(srcdir)/stream.cpp 
  369. +
  370. +symbol.o:  $(srcdir)/symbol.cpp $(srcdir)/config.h $(srcdir)/stream.h \
  371. +             $(srcdir)/javadef.h $(srcdir)/javasym.h $(srcdir)/tuple.h \
  372. +             $(srcdir)/tab.h $(srcdir)/lookup.h \
  373. +             $(srcdir)/long.h $(srcdir)/double.h \
  374. +             $(srcdir)/code.h $(srcdir)/case.h $(srcdir)/control.h \
  375. +         $(srcdir)/option.h $(srcdir)/symbol.h $(srcdir)/depend.h \
  376. +             $(srcdir)/access.h $(srcdir)/set.h $(srcdir)/ast.h \
  377. +             $(srcdir)/semantic.h $(srcdir)/diagnose.h $(srcdir)/parser.h \
  378. +             $(srcdir)/lpginput.h $(srcdir)/javaprs.h $(srcdir)/javaact.h \
  379. +             $(srcdir)/error.h $(srcdir)/table.h $(srcdir)/zip.h $(srcdir)/unzip.h 
  380. +    $(CC) $(CCFLAGS) $(srcdir)/symbol.cpp
  381. +
  382. +system.o:  $(srcdir)/system.cpp $(srcdir)/config.h $(srcdir)/control.h \
  383. +             $(srcdir)/option.h $(srcdir)/code.h \
  384. +             $(srcdir)/tuple.h $(srcdir)/symbol.h $(srcdir)/stream.h \
  385. +             $(srcdir)/javadef.h $(srcdir)/javasym.h $(srcdir)/tab.h \
  386. +             $(srcdir)/lookup.h $(srcdir)/long.h $(srcdir)/double.h \
  387. +             $(srcdir)/case.h $(srcdir)/depend.h \
  388. +             $(srcdir)/access.h $(srcdir)/set.h $(srcdir)/semantic.h \
  389. +         $(srcdir)/ast.h $(srcdir)/diagnose.h $(srcdir)/parser.h \
  390. +             $(srcdir)/lpginput.h $(srcdir)/javaprs.h $(srcdir)/javaact.h \
  391. +             $(srcdir)/error.h $(srcdir)/zip.h $(srcdir)/unzip.h 
  392. +    $(CC) $(CCFLAGS) $(srcdir)/system.cpp 
  393. +
  394. +tab.o: $(srcdir)/tab.h $(srcdir)/tab.cpp $(srcdir)/config.h
  395. +    $(CC) $(CCFLAGS) $(srcdir)/tab.cpp
  396. +
  397. +unzip.o:  $(srcdir)/unzip.cpp $(srcdir)/config.h $(srcdir)/unzip.h 
  398. +    $(CC) $(CCFLAGS) $(srcdir)/unzip.cpp 
  399. +
  400. +wom.o:  $(srcdir)/wom.cpp $(srcdir)/config.h $(srcdir)/semantic.h \
  401. +          $(srcdir)/ast.h $(srcdir)/stream.h $(srcdir)/javadef.h \
  402. +          $(srcdir)/javasym.h $(srcdir)/tuple.h \
  403. +          $(srcdir)/tab.h $(srcdir)/lookup.h $(srcdir)/long.h \
  404. +          $(srcdir)/double.h $(srcdir)/code.h \
  405. +      $(srcdir)/case.h $(srcdir)/symbol.h $(srcdir)/option.h \
  406. +          $(srcdir)/depend.h $(srcdir)/access.h $(srcdir)/diagnose.h \
  407. +          $(srcdir)/parser.h $(srcdir)/lpginput.h $(srcdir)/javaprs.h \
  408. +          $(srcdir)/javaact.h $(srcdir)/error.h $(srcdir)/control.h $(srcdir)/set.h 
  409. +    $(CC) $(CCFLAGS) $(srcdir)/wom.cpp
  410. +
  411. +zip.o:  $(srcdir)/zip.cpp $(srcdir)/config.h $(srcdir)/control.h \
  412. +          $(srcdir)/option.h $(srcdir)/code.h $(srcdir)/tuple.h \
  413. +      $(srcdir)/symbol.h $(srcdir)/stream.h $(srcdir)/javadef.h \
  414. +          $(srcdir)/javasym.h $(srcdir)/tab.h $(srcdir)/lookup.h $(srcdir)/long.h \
  415. +      $(srcdir)/double.h $(srcdir)/case.h \
  416. +          $(srcdir)/depend.h $(srcdir)/access.h $(srcdir)/set.h \
  417. +          $(srcdir)/zip.h $(srcdir)/unzip.h 
  418. +    $(CC) $(CCFLAGS) $(srcdir)/zip.cpp 
  419. +
  420. +segment.o:  $(srcdir)/segment.cpp $(srcdir)/segment.h $(srcdir)/tuple.h $(srcdir)/config.h 
  421. +    $(CC) $(CCFLAGS) $(srcdir)/segment.cpp
  422. +
  423. diff -u -r -N jikes-1.06.orig/src/README.AMIGA jikes-1.06/src/README.AMIGA
  424. --- jikes-1.06.orig/src/README.AMIGA    Thu Jan  1 02:00:00 1970
  425. +++ jikes-1.06/src/README.AMIGA    Mon Sep 20 17:31:46 1999
  426. @@ -0,0 +1,44 @@
  427. +This is the source of the native Amiga port (no ixemul.library required)
  428. +of jikes, the free Java compiler from IBM.
  429. +
  430. +The Aminet version is the latest stable version.  The current development
  431. +version can be found at http://dias.cti.gr/~kyrimis/jikes/ .
  432. +
  433. +To build jikes on the Amiga, you can either run the configure script,
  434. +e.g., type "configure --prefix=/gg" from sh and tweak the resulting
  435. +Makefile, or simply copy Makefile.amiga to Makefile.
  436. +
  437. +Before typing "make", you may want to make the following changes to the
  438. +Makefile:
  439. +* Change the CPU and FPU options.
  440. +* Change the optimization level. Note that using -O2 will produce a binary
  441. +  that is about a megabyte larger, and the resulting gains in compilation
  442. +  time will be overwhelmed by the additional loading time. Also note that
  443. +  you will need at least 70M of memory to compile jikes with -O2, i.e.,
  444. +  you will most likely need to use VMM, and that on a 68040@28MHz it
  445. +  takes about a day to produce the optimized binary. In other words,
  446. +  don't bother.
  447. +
  448. +INSTALLATION:
  449. +Simply copy the jikes executable somewhere in your path.
  450. +
  451. +USAGE:
  452. +Set either the CLASSPATH or the JIKESPATH environment variable to point
  453. +to the directories and zip/jar files that you want your compiler to use.
  454. +E.g., if you are using Kaffe, you can say:
  455. +setenv CLASSPATH "GG:share/kaffe/Klasses.jar;GG:share/kaffe/Pizza.jar;."
  456. +Separate the path components using semicolons. You can use UNIX "." and ".."
  457. +notation for the current directory and for the parent directory of a
  458. +directory.
  459. +
  460. +If you find a bug in the Amiga port, you can contact me at kyrimis@cti.gr
  461. +and I'll see what I can do.
  462. +
  463. +Kriton Kyrimis.
  464. +
  465. +******************************************************************************
  466. +This software is subject to the terms of the IBM Public License, available
  467. +at the following URL: http://www.research.com/jikes/license/license3.htm.
  468. +Copyright (C) 1996, 1999 International Business Machines Corporation
  469. +and others.  All Rights Reserved.
  470. +******************************************************************************
  471. diff -u -r -N jikes-1.06.orig/src/amiga.c jikes-1.06/src/amiga.c
  472. --- jikes-1.06.orig/src/amiga.c    Thu Jan  1 02:00:00 1970
  473. +++ jikes-1.06/src/amiga.c    Wed Sep 29 21:35:50 1999
  474. @@ -0,0 +1,132 @@
  475. +#ifdef stat
  476. +#undef stat
  477. +#endif
  478. +#ifdef fopen
  479. +#undef fopen
  480. +#endif
  481. +#ifdef opendir
  482. +#undef opendir
  483. +#endif
  484. +#ifdef mkdir
  485. +#undef mkdir
  486. +#endif
  487. +
  488. +#include <stdio.h>
  489. +#include <sys/types.h>
  490. +#include <sys/stat.h>
  491. +#include <sys/param.h>
  492. +#include <string.h>
  493. +#include <unistd.h>
  494. +#include <dirent.h>
  495. +
  496. +__BEGIN_DECLS
  497. +/**
  498. + * Provide wrappers for the stat, fopen, and opendir functions that massage
  499. + * the file names given to them as arguments so that UNIX "." and ".."
  500. + * path names are translated to their AmigaOS equivalents. This is done so
  501. + * that no intervention is done in terms of file semantics to the jikes
  502. + * source.
  503. + */
  504. +static char buf[MAXPATHLEN+1];
  505. +static char cwd[MAXPATHLEN+1];
  506. +static char pathComponent[MAXPATHLEN+1];
  507. +
  508. +static void ix_out(char *s)
  509. +{
  510. +  int ptr;
  511. +
  512. +  if (strcmp(s, ".") == 0) {
  513. +    if (buf[0] == '\0') {
  514. +      strcat(buf, cwd);
  515. +    }else{
  516. +      ptr = strlen(buf)-1;
  517. +      if (buf[ptr] == '/') {
  518. +        buf[ptr] = '\0';
  519. +      }
  520. +    }
  521. +  }else{
  522. +    if (strcmp(s, "..") == 0) {
  523. +      strcat(buf, "/");
  524. +    }else{
  525. +      strcat(buf, s);
  526. +    }
  527. +  }
  528. +}
  529. +
  530. +static char *
  531. +ix_path(const char *path)
  532. +{
  533. +  int len;
  534. +  char sep[2];
  535. +  int appendSep, skipNext = 0;
  536. +  int i, j;
  537. +
  538. +  buf[0] = '\0';
  539. +  cwd[0] = '\0';
  540. +  pathComponent[0] = '\0';
  541. +  sep[1] = '\0';
  542. +  getcwd(cwd, sizeof(cwd));
  543. +  len = strlen(path);
  544. +
  545. +  for (i=0, j=0; i<len; i++) {
  546. +    if (path[i] == '/' || path[i] == ':') {
  547. +      pathComponent[j] = '\0';
  548. +      if (j != 0) {
  549. +        ix_out(pathComponent);
  550. +        if (buf[0] != '\0' &&
  551. +        ((strcmp(pathComponent, ".") == 0 && buf[strlen(buf)-1] == ':') ||
  552. +         (strcmp(pathComponent, "..") == 0 && buf[strlen(buf)-1] == '/'))){
  553. +      appendSep = 0;
  554. +    }else{
  555. +      appendSep = 1;
  556. +    }
  557. +        j = 0;
  558. +        pathComponent[0] = '\0';
  559. +      }
  560. +      sep[0] = path[i];
  561. +      if (appendSep && !skipNext) {
  562. +        strcat(buf, sep);
  563. +      }
  564. +      /* Constructs of the type FOO:/bar are *probably* caused by appending
  565. +       * UNIX-style a path to a directory, so we skip the bogus "/".
  566. +       */
  567. +      if (path[i] == ':' && path[i+1] == '/') {
  568. +        skipNext = 1;
  569. +      }else{
  570. +        skipNext = 0;
  571. +      }
  572. +    }else{
  573. +      pathComponent[j++] = path[i];
  574. +    }
  575. +  }
  576. +  if (j > 0) {
  577. +    pathComponent[j] = '\0';
  578. +    ix_out(pathComponent);
  579. +  }
  580. +  return buf;
  581. +}
  582. +
  583. +int
  584. +mystat(const char *path, struct stat *sb)
  585. +{
  586. +  return stat(ix_path(path), sb);
  587. +}
  588. +
  589. +FILE *
  590. +myfopen(char *path, char *mode)
  591. +{
  592. +  return fopen(ix_path(path), mode);
  593. +}
  594. +
  595. +DIR
  596. +*myopendir(const char *path)
  597. +{
  598. +  return opendir(ix_path(path));
  599. +}
  600. +
  601. +int
  602. +mymkdir(const char *path, mode_t mode)
  603. +{
  604. +  return mkdir(ix_path(path), mode);
  605. +}
  606. +__END_DECLS
  607. diff -u -r -N jikes-1.06.orig/src/bytecode.cpp jikes-1.06/src/bytecode.cpp
  608. --- jikes-1.06.orig/src/bytecode.cpp    Wed Sep 29 23:11:35 1999
  609. +++ jikes-1.06/src/bytecode.cpp    Mon Sep 20 17:31:47 1999
  610. @@ -20,7 +20,9 @@
  611.  #include "table.h"
  612.  #include <iostream.h>
  613.  #include <string.h>
  614. +#ifndef __amigaos__
  615.  #include <wchar.h>
  616. +#endif
  617.  
  618.  #ifdef WIN32_FILE_SYSTEM
  619.  #include <windows.h>
  620. diff -u -r -N jikes-1.06.orig/src/case.h jikes-1.06/src/case.h
  621. --- jikes-1.06.orig/src/case.h    Wed Sep 29 23:11:35 1999
  622. +++ jikes-1.06/src/case.h    Mon Sep 20 17:31:47 1999
  623. @@ -12,7 +12,9 @@
  624.  #define case_INCLUDED
  625.  
  626.  #include "config.h"
  627. +#ifndef __amigaos__
  628.  #include <wchar.h>
  629. +#endif
  630.  
  631.  //
  632.  // NOTE that this class is hard-wired to work on an ASCII machine.
  633. diff -u -r -N jikes-1.06.orig/src/config.cpp jikes-1.06/src/config.cpp
  634. --- jikes-1.06.orig/src/config.cpp    Wed Sep 29 23:11:36 1999
  635. +++ jikes-1.06/src/config.cpp    Mon Sep 20 17:31:47 1999
  636. @@ -364,7 +364,7 @@
  637.  #endif
  638.  
  639.  
  640. -#if defined(GNU_LIBC5)
  641. +#if defined(GNU_LIBC5) || defined __amigaos__
  642.  #include <sys/stat.h>
  643.  #ifndef UNIX
  644.      int SystemMkdir(char *dirname)
  645. diff -u -r -N jikes-1.06.orig/src/config.h jikes-1.06/src/config.h
  646. --- jikes-1.06.orig/src/config.h    Wed Sep 29 23:11:36 1999
  647. +++ jikes-1.06/src/config.h    Mon Sep 20 17:31:47 1999
  648. @@ -10,7 +10,9 @@
  649.  #ifndef config_INCLUDED
  650.  #define config_INCLUDED
  651.  
  652. +#ifndef __amigaos__
  653.  #include <wchar.h>
  654. +#endif
  655.  #include <new.h>
  656.  #include <iostream.h>
  657.  #include <stdlib.h>
  658. @@ -21,6 +23,17 @@
  659.  #include <sys/types.h>
  660.  #include <sys/stat.h>
  661.  
  662. +
  663. +#if defined(GNU_LIBC5) || defined __amigaos__
  664. +    extern size_t wcslen(wchar_t *);
  665. +    extern wchar_t *wcscpy(wchar_t *, wchar_t *);
  666. +    extern wchar_t *wcsncpy(wchar_t *, wchar_t *, int);
  667. +    extern wchar_t *wcscat(wchar_t *, wchar_t *);
  668. +    extern int wcscmp(wchar_t *, wchar_t *);
  669. +    extern int wcsncmp(wchar_t *, wchar_t *, int);
  670. +#endif
  671. +
  672. +
  673.  #ifdef TEST
  674.  #define NO_LEAKS
  675.  #endif
  676. @@ -576,14 +589,8 @@
  677.  #define UNIX_FILE_SYSTEM
  678.  #endif
  679.  
  680. -
  681. -#if defined(GNU_LIBC5)
  682. -    extern size_t wcslen(wchar_t *);
  683. -    extern wchar_t *wcscpy(wchar_t *, wchar_t *);
  684. -    extern wchar_t *wcsncpy(wchar_t *, wchar_t *, int);
  685. -    extern wchar_t *wcscat(wchar_t *, wchar_t *);
  686. -    extern int wcscmp(wchar_t *, wchar_t *);
  687. -    extern int wcsncmp(wchar_t *, wchar_t *, int);
  688. +#ifdef __amigaos__
  689. +#define AMIGAOS_FILE_SYSTEM
  690.  #endif
  691.  
  692.  
  693. diff -u -r -N jikes-1.06.orig/src/configure jikes-1.06/src/configure
  694. --- jikes-1.06.orig/src/configure    Wed Sep 29 23:11:36 1999
  695. +++ jikes-1.06/src/configure    Wed Sep 29 18:59:02 1999
  696. @@ -1,7 +1,7 @@
  697.  #! /bin/sh
  698.  
  699.  # Guess values for system-dependent variables and create Makefiles.
  700. -# Generated automatically using autoconf version 2.12 
  701. +# Generated automatically using autoconf version 2.13 
  702.  # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  703.  #
  704.  # This configure script is free software; the Free Software Foundation
  705. @@ -52,11 +52,16 @@
  706.  includedir='${prefix}/include'
  707.  oldincludedir='/usr/include'
  708.  infodir='${prefix}/info'
  709. +guidedir='${prefix}/guide'
  710. +htmldir='${prefix}/html'
  711. +psdir='${prefix}/ps'
  712. +dvidir='${prefix}/dvi'
  713.  mandir='${prefix}/man'
  714.  
  715.  # Initialize some other variables.
  716.  subdirs=
  717.  MFLAGS= MAKEFLAGS=
  718. +SHELL=${CONFIG_SHELL-/bin/sh}
  719.  # Maximum number of lines to put in a shell here document.
  720.  ac_max_here_lines=12
  721.  
  722. @@ -168,6 +173,10 @@
  723.    --includedir=DIR        C header files in DIR [PREFIX/include]
  724.    --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  725.    --infodir=DIR           info documentation in DIR [PREFIX/info]
  726. +  --guidedir=DIR          Amigaguide documentation in DIR [PREFIX/guide]
  727. +  --htmldir=DIR           HTML documentation in DIR [PREFIX/html]
  728. +  --psdir=DIR             postscript documentation in DIR [PREFIX/ps]
  729. +  --dvidir=DIR            TeX dvi documentation in DIR [PREFIX/dvi]
  730.    --mandir=DIR            man documentation in DIR [PREFIX/man]
  731.    --srcdir=DIR            find the sources in DIR [configure dir or ..]
  732.    --program-prefix=PREFIX prepend PREFIX to installed program names
  733. @@ -210,6 +219,22 @@
  734.    -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  735.      infodir="$ac_optarg" ;;
  736.  
  737. + -guidedir | --guidedir | --guidedi | --guided | --guide | --gui)
  738. +   ac_prev=guidedir ;;
  739. + -guidedir=* | --guidedir=* | --guidedi=* | --guided=* | --guide=* |--gui=*)+    guidedir="$ac_optarg" ;;
  740. +
  741. + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm)
  742. +   ac_prev=htmldir ;;
  743. + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* |--htm=*)+    htmldir="$ac_optarg" ;;
  744. +
  745. + -psdir | --psdir | --psdi | --psd | --ps)
  746. +   ac_prev=psdir ;;
  747. + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)+    psdir="$ac_optarg" ;;
  748. +
  749. + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  750. +   ac_prev=dvidir ;;
  751. + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* |--dv=*)+    dvidir="$ac_optarg" ;;
  752. +
  753.    -libdir | --libdir | --libdi | --libd)
  754.      ac_prev=libdir ;;
  755.    -libdir=* | --libdir=* | --libdi=* | --libd=*)
  756. @@ -340,7 +365,7 @@
  757.      verbose=yes ;;
  758.  
  759.    -version | --version | --versio | --versi | --vers)
  760. -    echo "configure generated by autoconf version 2.12"
  761. +    echo "configure generated by autoconf version 2.13"
  762.      exit 0 ;;
  763.  
  764.    -with-* | --with-*)
  765. @@ -510,9 +535,11 @@
  766.  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  767.  ac_cpp='$CPP $CPPFLAGS'
  768.  ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  769. -ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  770. +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  771.  cross_compiling=$ac_cv_prog_cc_cross
  772.  
  773. +ac_exeext=
  774. +ac_objext=o
  775.  if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  776.    # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  777.    if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  778. @@ -572,7 +599,7 @@
  779.          # Extract the first word of "icc", so it can be a program name with args.
  780.  set dummy icc; ac_word=$2
  781.  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  782. -echo "configure:576: checking for $ac_word" >&5
  783. +echo "configure:603: checking for $ac_word" >&5
  784.  if eval "test \"`echo '$''{'ac_cv_path_CC'+set}'`\" = set"; then
  785.    echo $ac_n "(cached) $ac_c" 1>&6
  786.  else
  787. @@ -580,9 +607,13 @@
  788.    /*)
  789.    ac_cv_path_CC="$CC" # Let the user override the test with a path.
  790.    ;;
  791. +  ?:/*)             
  792. +  ac_cv_path_CC="$CC" # Let the user override the test with a dos path.
  793. +  ;;
  794.    *)
  795. -  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  796. -  for ac_dir in $PATH; do
  797. +  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  798. +  ac_dummy="$PATH"
  799. +  for ac_dir in $ac_dummy; do 
  800.      test -z "$ac_dir" && ac_dir=.
  801.      if test -f $ac_dir/$ac_word; then
  802.        ac_cv_path_CC="$ac_dir/$ac_word"
  803. @@ -605,7 +636,7 @@
  804.              # Extract the first word of "xlC", so it can be a program name with args.
  805.  set dummy xlC; ac_word=$2
  806.  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  807. -echo "configure:609: checking for $ac_word" >&5
  808. +echo "configure:640: checking for $ac_word" >&5
  809.  if eval "test \"`echo '$''{'ac_cv_path_CC'+set}'`\" = set"; then
  810.    echo $ac_n "(cached) $ac_c" 1>&6
  811.  else
  812. @@ -613,9 +644,13 @@
  813.    /*)
  814.    ac_cv_path_CC="$CC" # Let the user override the test with a path.
  815.    ;;
  816. +  ?:/*)             
  817. +  ac_cv_path_CC="$CC" # Let the user override the test with a dos path.
  818. +  ;;
  819.    *)
  820. -  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  821. -  for ac_dir in $PATH; do
  822. +  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  823. +  ac_dummy="$PATH"
  824. +  for ac_dir in $ac_dummy; do 
  825.      test -z "$ac_dir" && ac_dir=.
  826.      if test -f $ac_dir/$ac_word; then
  827.        ac_cv_path_CC="$ac_dir/$ac_word"
  828. @@ -674,7 +709,7 @@
  829.          # Extract the first word of "CC", so it can be a program name with args.
  830.  set dummy CC; ac_word=$2
  831.  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  832. -echo "configure:678: checking for $ac_word" >&5
  833. +echo "configure:713: checking for $ac_word" >&5
  834.  if eval "test \"`echo '$''{'ac_cv_path_CC'+set}'`\" = set"; then
  835.    echo $ac_n "(cached) $ac_c" 1>&6
  836.  else
  837. @@ -682,9 +717,13 @@
  838.    /*)
  839.    ac_cv_path_CC="$CC" # Let the user override the test with a path.
  840.    ;;
  841. +  ?:/*)             
  842. +  ac_cv_path_CC="$CC" # Let the user override the test with a dos path.
  843. +  ;;
  844.    *)
  845. -  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  846. -  for ac_dir in $PATH; do
  847. +  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  848. +  ac_dummy="$PATH"
  849. +  for ac_dir in $ac_dummy; do 
  850.      test -z "$ac_dir" && ac_dir=.
  851.      if test -f $ac_dir/$ac_word; then
  852.        ac_cv_path_CC="$ac_dir/$ac_word"
  853. @@ -726,20 +765,21 @@
  854.  #--------------------------------------------------------------------
  855.  
  856.  if test "$CC_NAME" = ""; then
  857. -    for ac_prog in $CCC c++ g++ gcc CC cxx cc++
  858. +    for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
  859.  do
  860.  # Extract the first word of "$ac_prog", so it can be a program name with args.
  861.  set dummy $ac_prog; ac_word=$2
  862.  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  863. -echo "configure:735: checking for $ac_word" >&5
  864. +echo "configure:774: checking for $ac_word" >&5
  865.  if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
  866.    echo $ac_n "(cached) $ac_c" 1>&6
  867.  else
  868.    if test -n "$CXX"; then
  869.    ac_cv_prog_CXX="$CXX" # Let the user override the test.
  870.  else
  871. -  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  872. -  for ac_dir in $PATH; do
  873. +  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  874. +  ac_dummy="$PATH"
  875. +  for ac_dir in $ac_dummy; do
  876.      test -z "$ac_dir" && ac_dir=.
  877.      if test -f $ac_dir/$ac_word; then
  878.        ac_cv_prog_CXX="$ac_prog"
  879. @@ -762,21 +802,23 @@
  880.  
  881.  
  882.  echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  883. -echo "configure:766: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
  884. +echo "configure:806: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
  885.  
  886.  ac_ext=C
  887.  # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  888.  ac_cpp='$CXXCPP $CPPFLAGS'
  889.  ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  890. -ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  891. +ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  892.  cross_compiling=$ac_cv_prog_cxx_cross
  893.  
  894. -cat > conftest.$ac_ext <<EOF
  895. -#line 776 "configure"
  896. +cat > conftest.$ac_ext << EOF
  897. +
  898. +#line 817 "configure"
  899.  #include "confdefs.h"
  900. -main(){return(0);}
  901. +
  902. +int main(){return(0);}
  903.  EOF
  904. -if { (eval echo configure:780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  905. +if { (eval echo configure:822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  906.    ac_cv_prog_cxx_works=yes
  907.    # If we can't run a trivial program, we are probably using a cross compiler.
  908.    if (./conftest; exit) 2>/dev/null; then
  909. @@ -794,7 +836,7 @@
  910.  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  911.  ac_cpp='$CPP $CPPFLAGS'
  912.  ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  913. -ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  914. +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  915.  cross_compiling=$ac_cv_prog_cc_cross
  916.  
  917.  echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
  918. @@ -802,12 +844,12 @@
  919.    { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
  920.  fi
  921.  echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  922. -echo "configure:806: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
  923. +echo "configure:848: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
  924.  echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
  925.  cross_compiling=$ac_cv_prog_cxx_cross
  926.  
  927.  echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
  928. -echo "configure:811: checking whether we are using GNU C++" >&5
  929. +echo "configure:853: checking whether we are using GNU C++" >&5
  930.  if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
  931.    echo $ac_n "(cached) $ac_c" 1>&6
  932.  else
  933. @@ -816,7 +858,7 @@
  934.    yes;
  935.  #endif
  936.  EOF
  937. -if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  938. +if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  939.    ac_cv_prog_gxx=yes
  940.  else
  941.    ac_cv_prog_gxx=no
  942. @@ -827,11 +869,15 @@
  943.  
  944.  if test $ac_cv_prog_gxx = yes; then
  945.    GXX=yes
  946. -  ac_test_CXXFLAGS="${CXXFLAGS+set}"
  947. -  ac_save_CXXFLAGS="$CXXFLAGS"
  948. -  CXXFLAGS=
  949. -  echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
  950. -echo "configure:835: checking whether ${CXX-g++} accepts -g" >&5
  951. +else
  952. +  GXX=
  953. +fi
  954. +
  955. +ac_test_CXXFLAGS="${CXXFLAGS+set}"
  956. +ac_save_CXXFLAGS="$CXXFLAGS"
  957. +CXXFLAGS=
  958. +echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
  959. +echo "configure:881: checking whether ${CXX-g++} accepts -g" >&5
  960.  if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
  961.    echo $ac_n "(cached) $ac_c" 1>&6
  962.  else
  963. @@ -846,16 +892,20 @@
  964.  fi
  965.  
  966.  echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
  967. -  if test "$ac_test_CXXFLAGS" = set; then
  968. -    CXXFLAGS="$ac_save_CXXFLAGS"
  969. -  elif test $ac_cv_prog_cxx_g = yes; then
  970. +if test "$ac_test_CXXFLAGS" = set; then
  971. +  CXXFLAGS="$ac_save_CXXFLAGS"
  972. +elif test $ac_cv_prog_cxx_g = yes; then
  973. +  if test "$GXX" = yes; then
  974.      CXXFLAGS="-g -O2"
  975.    else
  976. -    CXXFLAGS="-O2"
  977. +    CXXFLAGS="-g"
  978.    fi
  979.  else
  980. -  GXX=
  981. -  test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
  982. +  if test "$GXX" = yes; then
  983. +    CXXFLAGS="-O2"
  984. +  else
  985. +    CXXFLAGS=
  986. +  fi
  987.  fi
  988.  
  989.  
  990. @@ -883,14 +933,14 @@
  991.  # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  992.  ac_cpp='$CXXCPP $CPPFLAGS'
  993.  ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  994. -ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  995. +ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  996.  cross_compiling=$ac_cv_prog_cxx_cross
  997.  
  998.  
  999.  echo $ac_n "checking builtin bool type""... $ac_c" 1>&6
  1000. -echo "configure:892: checking builtin bool type" >&5
  1001. +echo "configure:942: checking builtin bool type" >&5
  1002.  cat > conftest.$ac_ext <<EOF
  1003. -#line 894 "configure"
  1004. +#line 944 "configure"
  1005.  #include "confdefs.h"
  1006.  
  1007.  int main() {
  1008. @@ -899,7 +949,7 @@
  1009.  
  1010.  ; return 0; }
  1011.  EOF
  1012. -if { (eval echo configure:903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1013. +if { (eval echo configure:953: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1014.    rm -rf conftest*
  1015.    
  1016.  CCREQUIREDFLAGS="$CCREQUIREDFLAGS -DTYPE_bool"
  1017. @@ -919,7 +969,7 @@
  1018.  # echo the compiler we are using
  1019.  
  1020.  echo $ac_n "checking for the compiler to use""... $ac_c" 1>&6
  1021. -echo "configure:923: checking for the compiler to use" >&5
  1022. +echo "configure:973: checking for the compiler to use" >&5
  1023.  echo "$ac_t""$CC." 1>&6
  1024.  
  1025.  
  1026. @@ -1050,6 +1100,16 @@
  1027.                  ;;
  1028.          esac
  1029.      ;;
  1030. +    AmigaOS)
  1031. +        CCREQUIREDFLAGS="$CCREQUIREDFLAGS -DBIGENDIAN -Dstat=mystat -Dfopen=myfopen -Dopendir=myopendir -Dmkdir=mymkdir"
  1032. +    SYSOBJECTS="-noixemul"
  1033. +
  1034. +        case "$CC_NAME" in
  1035. +            ?++)
  1036. +                CCREQUIREDFLAGS="-funsigned-char $CCREQUIREDFLAGS"
  1037. +                ;;
  1038. +        esac
  1039. +    ;;
  1040.      *)
  1041.          { echo "configure: error: platform '`uname -s`' is not supported." 1>&2; exit 1; }
  1042.          ;;
  1043. @@ -1081,19 +1141,19 @@
  1044.  #     Check for libc brokenness (linux libc5, maybe others?) - CSA
  1045.  #--------------------------------------------------------------------
  1046.  echo $ac_n "checking for a broken wchar.h""... $ac_c" 1>&6
  1047. -echo "configure:1085: checking for a broken wchar.h" >&5
  1048. +echo "configure:1145: checking for a broken wchar.h" >&5
  1049.  if eval "test \"`echo '$''{'jikes_cv_broken_wchar'+set}'`\" = set"; then
  1050.    echo $ac_n "(cached) $ac_c" 1>&6
  1051.  else
  1052.    cat > conftest.$ac_ext <<EOF
  1053. -#line 1090 "configure"
  1054. +#line 1150 "configure"
  1055.  #include "confdefs.h"
  1056.  #include <wchar.h>
  1057.  int main() {
  1058.  wint_t foo;
  1059.  ; return 0; }
  1060.  EOF
  1061. -if { (eval echo configure:1097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1062. +if { (eval echo configure:1157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1063.    rm -rf conftest*
  1064.    jikes_cv_broken_wchar=no
  1065.  else
  1066. @@ -1108,17 +1168,19 @@
  1067.  echo "$ac_t""$jikes_cv_broken_wchar" 1>&6
  1068.  if test $jikes_cv_broken_wchar = yes; then
  1069.      cat > conftest.$ac_ext <<EOF
  1070. -#line 1112 "configure"
  1071. +#line 1172 "configure"
  1072.  #include "confdefs.h"
  1073.  
  1074.  #include "libc5-fix.h"
  1075. +#ifndef __amigaos__
  1076.  #include <wchar.h>
  1077. +#endif
  1078.  
  1079.  int main() {
  1080.  wint_t foo;
  1081.  ; return 0; }
  1082.  EOF
  1083. -if { (eval echo configure:1122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1084. +if { (eval echo configure:1184: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1085.    rm -rf conftest*
  1086.    CCREQUIREDFLAGS="$CCREQUIREDFLAGS -include libc5-fix.h"
  1087.  else
  1088. @@ -1170,7 +1232,7 @@
  1089.  # Ultrix sh set writes to stderr and can't be redirected directly,
  1090.  # and sets the high bit in the cache file unless we assign to the vars.
  1091.  (set) 2>&1 |
  1092. -  case `(ac_space=' '; set) 2>&1` in
  1093. +  case `(ac_space=' '; set | grep ac_space) 2>&1` in
  1094.    *ac_space=\ *)
  1095.      # `set' does not quote correctly, so add quotes (double-quote substitution
  1096.      # turns \\\\ into \\, and sed turns \\ into \).
  1097. @@ -1210,6 +1272,7 @@
  1098.  
  1099.  trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1100.  
  1101. +
  1102.  # Transform confdefs.h into DEFS.
  1103.  # Protect against shell expansion while executing Makefile rules.
  1104.  # Protect against Makefile macro expansion.
  1105. @@ -1228,7 +1291,9 @@
  1106.  : ${CONFIG_STATUS=./config.status}
  1107.  
  1108.  echo creating $CONFIG_STATUS
  1109. -rm -f $CONFIG_STATUS
  1110. +# Some systems, like AmigaOS, won't allow you to remove a script that is
  1111. +# being executed, so just move it out of the way instead.
  1112. +if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
  1113.  cat > $CONFIG_STATUS <<EOF
  1114.  #! /bin/sh
  1115.  # Generated automatically by configure.
  1116. @@ -1249,7 +1314,7 @@
  1117.      echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1118.      exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1119.    -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1120. -    echo "$CONFIG_STATUS generated by autoconf version 2.12"
  1121. +    echo "$CONFIG_STATUS generated by autoconf version 2.13"
  1122.      exit 0 ;;
  1123.    -help | --help | --hel | --he | --h)
  1124.      echo "\$ac_cs_usage"; exit 0 ;;
  1125. @@ -1268,9 +1333,11 @@
  1126.   s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  1127.  $ac_vpsub
  1128.  $extrasub
  1129. +s%@SHELL@%$SHELL%g
  1130.  s%@CFLAGS@%$CFLAGS%g
  1131.  s%@CPPFLAGS@%$CPPFLAGS%g
  1132.  s%@CXXFLAGS@%$CXXFLAGS%g
  1133. +s%@FFLAGS@%$FFLAGS%g
  1134.  s%@DEFS@%$DEFS%g
  1135.  s%@LDFLAGS@%$LDFLAGS%g
  1136.  s%@LIBS@%$LIBS%g
  1137. @@ -1288,6 +1355,10 @@
  1138.  s%@includedir@%$includedir%g
  1139.  s%@oldincludedir@%$oldincludedir%g
  1140.  s%@infodir@%$infodir%g
  1141. +s%@guidedir@%$guidedir%g
  1142. +s%@htmldir@%$htmldir%g
  1143. +s%@psdir@%$psdir%g
  1144. +s%@dvidir@%$dvidir%g
  1145.  s%@mandir@%$mandir%g
  1146.  s%@CC@%$CC%g
  1147.  s%@CXX@%$CXX%g
  1148. @@ -1405,6 +1476,7 @@
  1149.  exit 0
  1150.  EOF
  1151.  chmod +x $CONFIG_STATUS
  1152. +rm -f CONFIG.STATUS.old
  1153.  rm -fr confdefs* $ac_clean_files
  1154.  test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  1155.  
  1156. diff -u -r -N jikes-1.06.orig/src/configure.in jikes-1.06/src/configure.in
  1157. --- jikes-1.06.orig/src/configure.in    Wed Sep 29 23:11:37 1999
  1158. +++ jikes-1.06/src/configure.in    Wed Sep 29 18:58:50 1999
  1159. @@ -263,6 +263,16 @@
  1160.                  ;;
  1161.          esac
  1162.      ;;
  1163. +    AmigaOS)
  1164. +        CCREQUIREDFLAGS="$CCREQUIREDFLAGS -DBIGENDIAN -Dstat=mystat -Dfopen=myfopen -Dopendir=myopendir -Dmkdir=mymkdir"
  1165. +    SYSOBJECTS="-noixemul"
  1166. +
  1167. +        case "$CC_NAME" in
  1168. +            ?++)
  1169. +                CCREQUIREDFLAGS="-funsigned-char $CCREQUIREDFLAGS"
  1170. +                ;;
  1171. +        esac
  1172. +    ;;
  1173.      *)
  1174.          AC_MSG_ERROR([platform '`uname -s`' is not supported.])
  1175.          ;;
  1176. @@ -293,7 +303,9 @@
  1177.  if test $jikes_cv_broken_wchar = yes; then
  1178.      AC_TRY_COMPILE([
  1179.  #include "libc5-fix.h"
  1180. +#ifndef __amigaos__
  1181.  #include <wchar.h>
  1182. +#endif
  1183.  ],[wint_t foo;],
  1184.      CCREQUIREDFLAGS="$CCREQUIREDFLAGS -include libc5-fix.h",
  1185.      AC_MSG_ERROR([Can't fix broken wchar.h]))
  1186. diff -u -r -N jikes-1.06.orig/src/control.cpp jikes-1.06/src/control.cpp
  1187. --- jikes-1.06.orig/src/control.cpp    Wed Sep 29 23:11:37 1999
  1188. +++ jikes-1.06/src/control.cpp    Mon Sep 20 17:31:48 1999
  1189. @@ -631,7 +631,7 @@
  1190.  // When searching for a directory in the system, if it is not already present in the hierarchy
  1191.  // insert it and attempt to read it from the system...
  1192.  //
  1193. -#ifdef UNIX_FILE_SYSTEM
  1194. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1195.      DirectorySymbol *Control::ProcessSubdirectories(wchar_t *source_name, int source_name_length)
  1196.      {
  1197.          int name_length = (source_name_length < 0 ? 0 : source_name_length);
  1198. @@ -939,7 +939,7 @@
  1199.      //
  1200.      DirectorySymbol *directory_symbol;
  1201.      NameSymbol *file_name_symbol;
  1202. -#ifdef UNIX_FILE_SYSTEM
  1203. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1204.      int len;
  1205.      for (len = name_length - 1; len >= 0 && name[len] != U_SLASH; len--)
  1206.          ;
  1207. diff -u -r -N jikes-1.06.orig/src/getclass.cpp jikes-1.06/src/getclass.cpp
  1208. --- jikes-1.06.orig/src/getclass.cpp    Wed Sep 29 23:11:37 1999
  1209. +++ jikes-1.06/src/getclass.cpp    Mon Sep 20 17:31:49 1999
  1210. @@ -371,7 +371,7 @@
  1211.      }
  1212.      else
  1213.      {
  1214. -#ifdef UNIX_FILE_SYSTEM
  1215. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1216.          FILE *classfile = ::SystemFopen(file_symbol -> FileName(), "rb");
  1217.          if (classfile == NULL)
  1218.          {
  1219. diff -u -r -N jikes-1.06.orig/src/jikes.cpp jikes-1.06/src/jikes.cpp
  1220. --- jikes-1.06.orig/src/jikes.cpp    Wed Sep 29 23:11:38 1999
  1221. +++ jikes-1.06/src/jikes.cpp    Mon Sep 20 17:31:49 1999
  1222. @@ -14,6 +14,15 @@
  1223.  #include "control.h"
  1224.  #include <stdio.h>
  1225.  
  1226. +#ifdef __amigaos__
  1227. +// Jikes definitely needs more than the default 4K stack. I've had no problems
  1228. +// running it with a stack of 20000, so we'll use that value, to play it safe,
  1229. +// even though the actual stack used is probably a lot less.
  1230. +extern "C" {
  1231. +  unsigned long __stack = 20000;
  1232. +}
  1233. +#endif
  1234. +
  1235.  int main(int argc, char *argv[])
  1236.  {
  1237.      int return_code;
  1238. diff -u -r -N jikes-1.06.orig/src/lookup.h jikes-1.06/src/lookup.h
  1239. --- jikes-1.06.orig/src/lookup.h    Wed Sep 29 23:11:38 1999
  1240. +++ jikes-1.06/src/lookup.h    Mon Sep 20 17:31:49 1999
  1241. @@ -11,7 +11,9 @@
  1242.  #define lookup_INCLUDED
  1243.  
  1244.  #include "config.h"
  1245. +#ifndef __amigaos__
  1246.  #include <wchar.h>
  1247. +#endif
  1248.  #include <string.h>
  1249.  #include <sys/stat.h>
  1250.  #include <time.h>
  1251. diff -u -r -N jikes-1.06.orig/src/option.cpp jikes-1.06/src/option.cpp
  1252. --- jikes-1.06.orig/src/option.cpp    Wed Sep 29 23:11:38 1999
  1253. +++ jikes-1.06/src/option.cpp    Mon Sep 20 17:31:49 1999
  1254. @@ -241,7 +241,7 @@
  1255.              else if (strcmp(arguments.argv[i], "-d") == 0 && ((i + 1) < arguments.argc))
  1256.              {
  1257.                  ++i;
  1258. -#ifdef UNIX_FILE_SYSTEM
  1259. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1260.                  int length = strlen(arguments.argv[i]);
  1261.                  directory = new char[length + 1];
  1262.                  strcpy(directory, arguments.argv[i]);
  1263. diff -u -r -N jikes-1.06.orig/src/option.h jikes-1.06/src/option.h
  1264. --- jikes-1.06.orig/src/option.h    Wed Sep 29 23:11:38 1999
  1265. +++ jikes-1.06/src/option.h    Mon Sep 20 17:31:50 1999
  1266. @@ -17,6 +17,10 @@
  1267.  #include <ctype.h>
  1268.  #include "code.h"
  1269.  #include "tuple.h"
  1270. +#ifdef AMIGAOS_FILE_SYSTEM
  1271. +#include <unistd.h>
  1272. +#include <sys/param.h>
  1273. +#endif
  1274.  
  1275.  class ArgumentExpander
  1276.  {
  1277. @@ -101,6 +105,13 @@
  1278.      char *GetMainCurrentDirectory()
  1279.      {
  1280.          return current_directory[main_disk];
  1281. +    }
  1282. +#elif defined(AMIGAOS_FILE_SYSTEM)
  1283. +public:
  1284. +    char *GetMainCurrentDirectory()
  1285. +    {
  1286. +    static char buf[MAXPATHLEN+1];
  1287. +    return getcwd(buf, sizeof(buf));
  1288.      }
  1289.  #endif
  1290.  
  1291. diff -u -r -N jikes-1.06.orig/src/parser.h jikes-1.06/src/parser.h
  1292. --- jikes-1.06.orig/src/parser.h    Wed Sep 29 23:11:38 1999
  1293. +++ jikes-1.06/src/parser.h    Mon Sep 20 17:31:50 1999
  1294. @@ -13,7 +13,9 @@
  1295.  #include "config.h"
  1296.  #include <limits.h>
  1297.  #include <ctype.h>
  1298. +#ifndef __amigaos__
  1299.  #include <wchar.h>
  1300. +#endif
  1301.  #include <string.h>
  1302.  #include <stdio.h>
  1303.  #include "lpginput.h"
  1304. diff -u -r -N jikes-1.06.orig/src/semantic.h jikes-1.06/src/semantic.h
  1305. --- jikes-1.06.orig/src/semantic.h    Wed Sep 29 23:11:39 1999
  1306. +++ jikes-1.06/src/semantic.h    Mon Sep 20 17:31:50 1999
  1307. @@ -11,7 +11,9 @@
  1308.  #define semantic_INCLUDED
  1309.  
  1310.  #include "config.h"
  1311. +#ifndef __amigaos__
  1312.  #include <wchar.h>
  1313. +#endif
  1314.  #include "ast.h"
  1315.  #include "diagnose.h"
  1316.  #include "error.h"
  1317. diff -u -r -N jikes-1.06.orig/src/stream.cpp jikes-1.06/src/stream.cpp
  1318. --- jikes-1.06.orig/src/stream.cpp    Wed Sep 29 23:11:39 1999
  1319. +++ jikes-1.06/src/stream.cpp    Mon Sep 20 17:31:50 1999
  1320. @@ -303,7 +303,7 @@
  1321.          file_symbol -> mtime = status.st_mtime; // actual time stamp of file read
  1322.          file_symbol -> lex_stream = this;
  1323.  
  1324. -#ifdef UNIX_FILE_SYSTEM
  1325. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1326.          FILE *srcfile = ::SystemFopen(FileName(), "r");
  1327.          if (srcfile != NULL)
  1328.          {
  1329. @@ -363,7 +363,7 @@
  1330.  
  1331.          if (status.st_mtime == file_symbol -> mtime)
  1332.          {
  1333. -#ifdef UNIX_FILE_SYSTEM
  1334. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1335.              FILE *srcfile = ::SystemFopen(FileName(), "r");
  1336.              if (srcfile != NULL)
  1337.              {
  1338. diff -u -r -N jikes-1.06.orig/src/symbol.cpp jikes-1.06/src/symbol.cpp
  1339. --- jikes-1.06.orig/src/symbol.cpp    Wed Sep 29 23:11:40 1999
  1340. +++ jikes-1.06/src/symbol.cpp    Mon Sep 20 17:31:51 1999
  1341. @@ -19,7 +19,7 @@
  1342.  #include "set.h"
  1343.  #include "case.h"
  1344.  
  1345. -#ifdef UNIX_FILE_SYSTEM
  1346. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1347.  #include <dirent.h>
  1348.  #elif defined(WIN32_FILE_SYSTEM)
  1349.  #include <windows.h>
  1350. @@ -764,7 +764,7 @@
  1351.      {
  1352.          entries = new DirectoryTable();
  1353.  
  1354. -#ifdef UNIX_FILE_SYSTEM
  1355. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1356.          DIR *directory = opendir(this -> DirectoryName());
  1357.          if (directory)
  1358.          {
  1359. diff -u -r -N jikes-1.06.orig/src/symbol.h jikes-1.06/src/symbol.h
  1360. --- jikes-1.06.orig/src/symbol.h    Wed Sep 29 23:11:40 1999
  1361. +++ jikes-1.06/src/symbol.h    Mon Sep 20 17:31:51 1999
  1362. @@ -2310,6 +2310,19 @@
  1363.      {
  1364.          return Case::StringSegmentEqual(suffix, java_suffix, java_suffix_length);
  1365.      }
  1366. +#elif defined(AMIGAOS_FILE_SYSTEM)
  1367. +    // Do not use StringSegmentEqual() as in the WIN32 case, because that
  1368. +    // function may check beyond the end of the string, thus possibly causing
  1369. +    // enforcer hits.
  1370. +    inline bool FileSymbol::IsClassSuffix(char *suffix)
  1371. +    {
  1372. +        return (strncasecmp(suffix, class_suffix, class_suffix_length) == 0);
  1373. +    }
  1374. +
  1375. +    inline bool  FileSymbol::IsJavaSuffix(char *suffix)
  1376. +    {
  1377. +        return (strncasecmp(suffix, java_suffix, java_suffix_length) == 0);
  1378. +    }
  1379.  #endif
  1380.  
  1381.  #endif // ifndef symbol_INCLUDED
  1382. diff -u -r -N jikes-1.06.orig/src/system.cpp jikes-1.06/src/system.cpp
  1383. --- jikes-1.06.orig/src/system.cpp    Wed Sep 29 23:11:41 1999
  1384. +++ jikes-1.06/src/system.cpp    Mon Sep 20 17:31:52 1999
  1385. @@ -428,7 +428,7 @@
  1386.  
  1387.  void Control::ProcessPath()
  1388.  {
  1389. -#ifdef UNIX_FILE_SYSTEM
  1390. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1391.      NameSymbol *dot_path_name_symbol = dot_name_symbol;
  1392.  
  1393.      //
  1394. @@ -496,7 +496,7 @@
  1395.                  path_name[i] = head[i];
  1396.              path_name[path_name_length] = U_NULL;
  1397.  
  1398. -#ifdef UNIX_FILE_SYSTEM
  1399. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1400.  
  1401.              input_name = path_name;
  1402.  
  1403. diff -u -r -N jikes-1.06.orig/src/tab.h jikes-1.06/src/tab.h
  1404. --- jikes-1.06.orig/src/tab.h    Wed Sep 29 23:11:41 1999
  1405. +++ jikes-1.06/src/tab.h    Mon Sep 20 17:31:52 1999
  1406. @@ -11,7 +11,9 @@
  1407.  #define tab_INCLUDED
  1408.  
  1409.  #include "config.h"
  1410. +#ifndef __amigaos__
  1411.  #include <wchar.h>
  1412. +#endif
  1413.  #include <string.h>
  1414.  
  1415.  class Tab
  1416. diff -u -r -N jikes-1.06.orig/src/tuple.h jikes-1.06/src/tuple.h
  1417. --- jikes-1.06.orig/src/tuple.h    Wed Sep 29 23:11:41 1999
  1418. +++ jikes-1.06/src/tuple.h    Mon Sep 20 17:31:52 1999
  1419. @@ -413,7 +413,7 @@
  1420.  
  1421.      inline bool WriteToFile(char *file_name)
  1422.      {
  1423. -#ifdef UNIX_FILE_SYSTEM
  1424. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1425.          FILE *file = ::SystemFopen(file_name, "wb");
  1426.          if (file  ==  (FILE *) NULL)
  1427.              return false;
  1428. diff -u -r -N jikes-1.06.orig/src/unzip.cpp jikes-1.06/src/unzip.cpp
  1429. --- jikes-1.06.orig/src/unzip.cpp    Wed Sep 29 23:11:41 1999
  1430. +++ jikes-1.06/src/unzip.cpp    Mon Sep 20 17:31:52 1999
  1431. @@ -44,7 +44,7 @@
  1432.  struct huft *Unzip::global_fixed_td;    /* inflate static */
  1433.  int Unzip::global_fixed_bl,
  1434.      Unzip::global_fixed_bd;
  1435. -#ifdef UNIX_FILE_SYSTEM
  1436. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1437.      FILE *Unzip::global_file; /* file pointer for zip file */
  1438.  #elif defined(WIN32_FILE_SYSTEM)
  1439.      char *Unzip::global_file; /* file pointer for zip file */
  1440. @@ -749,7 +749,7 @@
  1441.    return 0;
  1442.  }
  1443.  
  1444. -#ifdef UNIX_FILE_SYSTEM
  1445. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1446.      int Unzip::unzip8(FILE * zipfile, char *buffer)
  1447.  #elif defined(WIN32_FILE_SYSTEM)
  1448.      int Unzip::unzip8(char *zipfile, char *buffer)
  1449. @@ -790,7 +790,7 @@
  1450.  }
  1451.  
  1452.  
  1453. -#ifdef UNIX_FILE_SYSTEM
  1454. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1455.      int Unzip::UncompressFile0(FILE *zipfile, char *buffer, long buffer_length)
  1456.      {
  1457.          fread(buffer, sizeof(char), buffer_length, zipfile);
  1458. diff -u -r -N jikes-1.06.orig/src/unzip.h jikes-1.06/src/unzip.h
  1459. --- jikes-1.06.orig/src/unzip.h    Wed Sep 29 23:11:42 1999
  1460. +++ jikes-1.06/src/unzip.h    Mon Sep 20 17:31:52 1999
  1461. @@ -176,7 +176,7 @@
  1462.  
  1463.  #ifndef NEXTBYTE        /* default is to simply get a byte from stdin */
  1464.  /* default for   define NEXTBYTE is  getchar() */
  1465. -#ifdef UNIX_FILE_SYSTEM
  1466. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1467.      #define NEXTBYTE getc(global_file)
  1468.  #elif defined(WIN32_FILE_SYSTEM)
  1469.      #define NEXTBYTE ((u1) (*global_file++))
  1470. @@ -279,7 +279,7 @@
  1471.      static struct huft *global_fixed_td;    /* inflate static */
  1472.      static int global_fixed_bl,
  1473.                 global_fixed_bd;
  1474. -#ifdef UNIX_FILE_SYSTEM
  1475. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1476.      static FILE *global_file; /* file pointer for zip file */
  1477.  #elif defined(WIN32_FILE_SYSTEM)
  1478.      static char *global_file;
  1479. @@ -341,7 +341,7 @@
  1480.      static int inflate_block(int *);
  1481.      static int inflate_free();
  1482.  
  1483. -#ifdef UNIX_FILE_SYSTEM
  1484. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1485.      static int unzip8(FILE * zipfile, char *buffer);
  1486.  
  1487.      static int UncompressFile0(FILE *, char *, long);
  1488. diff -u -r -N jikes-1.06.orig/src/zip.cpp jikes-1.06/src/zip.cpp
  1489. --- jikes-1.06.orig/src/zip.cpp    Wed Sep 29 23:11:42 1999
  1490. +++ jikes-1.06/src/zip.cpp    Mon Sep 20 17:31:52 1999
  1491. @@ -20,7 +20,7 @@
  1492.  // The ZipFile methods follow
  1493.  //
  1494.  //************************************************************************************************
  1495. -#ifdef UNIX_FILE_SYSTEM
  1496. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1497.      int (*ZipFile::uncompress_file[10]) (FILE *, char *, long) =
  1498.      {
  1499.          UncompressFile0,
  1500. @@ -71,6 +71,7 @@
  1501.      {
  1502.          file_buffer += length;
  1503.      }
  1504. +
  1505.  #endif
  1506.  
  1507.  
  1508. @@ -100,7 +101,7 @@
  1509.  
  1510.      assert(zip -> IsValid());
  1511.  
  1512. -#ifdef UNIX_FILE_SYSTEM
  1513. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1514.      zipfile = zip -> zipfile;
  1515.      int rc = fseek(zipfile, file_symbol -> offset, SEEK_SET);
  1516.  
  1517. @@ -123,7 +124,7 @@
  1518.      u2 extra_field_length                    = GetU2();
  1519.      Skip(filename_length + extra_field_length);
  1520.  
  1521. -#ifdef UNIX_FILE_SYSTEM
  1522. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1523.      this -> buffer = new char[file_symbol -> uncompressed_size];
  1524.      if (! uncompress_file[compression_method < 9 ? compression_method : 9](zipfile, this -> buffer, file_symbol -> uncompressed_size))
  1525.      {
  1526. @@ -319,7 +320,7 @@
  1527.                                                    magic(0),
  1528.                                                    zipbuffer(NULL)
  1529.  {
  1530. -#ifdef UNIX_FILE_SYSTEM
  1531. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1532.      zipfile = ::SystemFopen(zipfile_name, "rb");
  1533.      if (zipfile)
  1534.      {
  1535. @@ -355,7 +356,7 @@
  1536.  
  1537.  Zip::~Zip()
  1538.  {
  1539. -#ifdef UNIX_FILE_SYSTEM
  1540. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1541.      delete [] zipbuffer;
  1542.      if (zipfile)
  1543.          fclose(zipfile);
  1544. @@ -392,7 +393,7 @@
  1545.                   // u2 total_number_of_entries_in_the_  = GetU2();
  1546.          u4 central_directory_size                       = GetU4();
  1547.  
  1548. -#ifdef UNIX_FILE_SYSTEM
  1549. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1550.          int rc = fseek(zipfile, -((int) central_directory_size + 22), SEEK_END);
  1551.  
  1552.          assert(rc == 0);
  1553. diff -u -r -N jikes-1.06.orig/src/zip.h jikes-1.06/src/zip.h
  1554. --- jikes-1.06.orig/src/zip.h    Wed Sep 29 23:11:42 1999
  1555. +++ jikes-1.06/src/zip.h    Mon Sep 20 17:31:52 1999
  1556. @@ -41,7 +41,7 @@
  1557.      u4 GetU4();
  1558.      void Skip(u4 length);
  1559.  
  1560. -#ifdef UNIX_FILE_SYSTEM
  1561. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1562.          FILE *zipfile;
  1563.          static int (*uncompress_file[10]) (FILE *, char *, long);
  1564.      public:
  1565. @@ -88,7 +88,7 @@
  1566.      DirectorySymbol *ProcessSubdirectoryEntries(DirectorySymbol *, char *, int);
  1567.      void ProcessDirectoryEntry();
  1568.  
  1569. -#ifdef UNIX_FILE_SYSTEM
  1570. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1571.      FILE *zipfile;
  1572.  #elif defined(WIN32_FILE_SYSTEM)
  1573.      HANDLE zipfile, mapfile;
  1574.